package org.app.Service;

import org.app.Entity.User;
import org.app.Entity.comm.Result;

import java.util.Set;

public interface IUserService {
    Result<User> Login(String c_phone, String c_password);
    Result<Integer> Register(User user );
    Result<Integer> updateUserInfo(User user);
//    Result<Integer> updateUserPhone(String c_id,String c_phone);
    Result<Integer> updateUserPassword(String username, String phone, String new_password);
    //    Result<Integer> updateToken(User user);
    Result<User> selectUserById(String c_id);
    //Result<Integer> forgetPassword(String c_phone,String new_password);

    Set<String> getUserRoles(String cId);

}
